# from selenium import webdriver
# import time
# from selenium.webdriver.support.ui import WebDriverWait
# from selenium.webdriver.common.by import By
# from selenium.webdriver.support import expected_conditions as ec
# driver=webdriver.Chrome()
# driver.get('http://101.133.169.100/yuns/index.php/')
# driver.maximize_window()
# time.sleep(2)
# #driver.find_element_by_name('key').send_keys(time.strftime('%Y%m%d%H%M%S',time.localtime(time.time())))
# driver.find_element_by_name('key').send_keys('男装活动')
# time.sleep(2)
# mc=driver.find_element_by_name('key').get_attribute('value')
# print(mc)
# time.sleep(2)
# driver.find_element_by_css_selector('#cart_num').click()
# time.sleep(2)
# driver.back()
# ee=WebDriverWait(driver,10,0.5).until(ec.presence_of_element_located((By.LINK_TEXT,'男装活动')))
# text=ee.text
# if text==mc:
#     print('Turl')
# else:
#     print('Fa')
#
# driver.quit()

# from selenium import webdriver
# import time
# from public.wklogin import wklogin
#
# driver=webdriver.Chrome()
# driver.get('http://182.92.197.48:8082/index.html#/login?redirect=%2F404')
# driver.maximize_window()
# time.sleep(2)
# wklogin(driver).login()
# aa=driver.find_element_by_xpath('//*[@id="crm-table"]/div[4]/div[2]/table/tbody/tr[1]/td[2]/div').text
# print(aa)
# driver.find_element_by_xpath("//span[text()='新建线索']").click()
# time.sleep(2)
# driver.find_element_by_xpath('//form/div[8]/div/div/span/i').click()
# time.sleep(2)
# driver.find_element_by_xpath('//html/body/div/div/button[1]').click()

from selenium import webdriver
import time
from public.url import wkurl
# from public.wklogin import wklogin
# from public.xjxiansuo import xingjian

driver=webdriver.Chrome()
url=wkurl.test_url()
driver.get(url+"/index.html#/login?redirect=%2F404")
driver.maximize_window()
time.sleep(2)
# wklogin(driver).xiansoulogin()
# xingjian(driver).xiansuo()
